import java.sql.SQLOutput;
import java.util.Scanner;

public class xingxing {
    public static void main(String[] args) {
        Scanner jp = new Scanner(System.in);
        System.out.println("请输入星星行数");
        int xing = jp.nextInt();
        for (int i = 1; i <= xing; i++) {
            for (int j = 1; j <= xing - i; j++) {
                System.out.print("");
            }
            for (int j = 1; j <= i; j++) {
                System.out.print("*");
            }
            for (int j = i - 1; j >= 1; j--) {
                System.out.print("*");
            }


            System.out.println();
        }
        for (int i =xing; i >= 1; i--) {
            for (int j = 1; j <= xing - i; j++) {
                System.out.print("");
            }
            for (int j = 2; j <= i; j++) {
                System.out.print("*");
            }
            for (int j = i - 2; j >= 1; j--) {
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
